<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for console object</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Console object API: dir</h1>

<p>This test-case is intended for <b>console.dir</b> method.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Console panel.</li>
<li>Click on the <code style="color:green">Execute Test 1</code> button below:<br/>
the console panel should display a log (one row) with variable <b>a</b>
and value <b>b</b>.</li>
<li>Click on the <code style="color:green">Execute Test 2</code> button below:<br/>
the console panel should display a log (one row) with variable <b>a</b>
and value <b>Object { b=Object }</b>.</li>
<li>Expand the object <b>a</b>, expand the object <b>b</b>, collapse <b>b</b> and
collapse <b>a</b>. All should work as expected.</li>
</ol>

<button id="testButton1" onclick="onExecuteTest1()">Execute Test 1</button>
<button id="testButton2" onclick="onExecuteTest2()">Execute Test 2</button>
<br/><br/>

<script type="text/javascript">
function onExecuteTest1()
{
    console.dir({'a': 'b'});
}
function onExecuteTest2()
{
    console.dir({'a': {'b': {'c': 1}}});
}
</script>

</body>
</html>
